package cn.com.adcc.utils;

/**
 * Created by hht on 2015/10/21.
 */
public class UtilsExtend {

    public static double byte2MB(long bCount){
        return Math.round(bCount / (1024 * 1024d)*100)/100d;
    }

    public static double byte2KB(long bCount){
        return Math.round(bCount / 1024d*100)/100d;
    }

    public static long kb2Byte(double kbCount){
        return (long)kbCount*1024 ;
    }

    public static long mb2Byte(double mbCount){
        return (long)mbCount*1024*1024 ;
    }
}
